package sample;

/**
 * @description:
 * @date: 2018/8/28 0028 15:08:16
 * @author: winter110
 */
public class Constant {
    //协议起始位
    public static final byte DATA_START = 0x02;
    //协议结束位
    public static final byte DATA_END = 0x03;
    public static final byte DATA_TRANSFER_FLAG = 0x10;
    public static final byte EMPTY = 0x00;

    //命令码
    public static final byte CLOCK_SYNCHRONIZATION = 0x21;
    public static final byte DISPLAY_A = 0x22;
    public static final byte DISPLAY_B = 0x23;
    public static final byte UPDATE_PICTURE = 0x24;
    public static final byte WHAT_SEND_CARD_NUM = 0x25;

    //应答码
    public static final byte SUCCESS_OPERATION = 0x00;
    public static final byte INVALID_PARAMETER = 0x01;
    public static final byte INVALID_COMMAND = 0x02;
    public static final byte COMMAND_LENGTH_ERROR = 0x03;
    public static final byte DEVICE_NODE_ERROR = 0x04;
    public static final byte DATA_START_ERROR = 0x05;
    public static final byte DATA_END_ERROR = 0x06;
    public static final byte DATA_CHECK_ERROR = 0x07;

}
